package seguranca;

import java.lang.reflect.Proxy;

public class ProxySeguranca {
    
    @SuppressWarnings("unchecked")
    public static <ITF> ITF setProxy(ITF obj) {
        return (ITF) Proxy.newProxyInstance(
        		obj.getClass().getClassLoader(),
        		obj.getClass().getInterfaces(),new ControleAutenticacao(obj));
    }    
}